package org.siqisource.webstart.patch.model;

import java.sql.Blob;
import java.sql.Clob;
import java.sql.Timestamp;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.siqisource.webstart.evolve.spring.mvc.JsonDateTimeSerializer;
import org.springframework.format.annotation.DateTimeFormat;

public class Patch { 
	
	/** 顺序号*/
	private int serialNumber;
	
	/** 说明*/
	private String note;
	
	/** sql脚本*/
	private Blob sql;

	/** war应用*/
	private Blob war;
	
	/** 发布日期*/
	private Timestamp publishTime;
	
	/** 接收日期*/
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonSerialize(using=JsonDateTimeSerializer.class)
	private Timestamp	receiveTime;
	
	/** 安装日期 */
	private Timestamp   installTime;
	
	/** 安装日志 */
	private Clob  installLog;
	
	/** 详细说明 */
	private String detail;
	
	/** 状态*/
	private int status;

	public int getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(int serialNumber) {
		this.serialNumber = serialNumber;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Blob getSql() {
		return sql;
	}

	public void setSql(Blob sql) {
		this.sql = sql;
	}

	public Blob getWar() {
		return war;
	}

	public void setWar(Blob war) {
		this.war = war;
	}

	public Timestamp getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Timestamp publishTime) {
		this.publishTime = publishTime;
	}

	public Timestamp getReceiveTime() {
		return receiveTime;
	}

	public void setReceiveTime(Timestamp receiveTime) {
		this.receiveTime = receiveTime;
	}

	public Timestamp getInstallTime() {
		return installTime;
	}

	public void setInstallTime(Timestamp installTime) {
		this.installTime = installTime;
	}

	public Clob getInstallLog() {
		return installLog;
	}

	public void setInstallLog(Clob installLog) {
		this.installLog = installLog;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
}
